package zz.fanshe;

import org.junit.Test;

import static org.junit.Assert.*;

public class MoAttactTest {

    @Test
    public void MoAttackTest() throws Exception {
        MyClassPathXmlApplicationContext applicationContext=new MyClassPathXmlApplicationContext("applicationContext.xml");
//        System.out.println(applicationContext.getBean("moAttack"));
//        moAttack.cityGataAsk();
//        zz.gouzao.MoAttact moAttact = (MoAttact) applicationContext.getBean("moAttack");
//        moAttact.cityGataAsk();
        Actor actor = (Actor) applicationContext.getBean("liu3");
        GeLi geLi = (GeLi) applicationContext.getBean("geli");
        MoAttact moAttact = new MoAttact(geLi,actor);
        moAttact.cityGataAsk();
    }
}